﻿<Window x:Class="KTVConsole2.UI.Config"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         Title="KTV点歌台 - 配置" Loaded="Window_Loaded" KeyDown="Window_KeyDown" Width="520" Height="300">
    <Grid Margin="12">
        <Grid.RowDefinitions>
            <RowDefinition Height="130"/>
            <RowDefinition Height="50"/>
            <RowDefinition Height="50"/>
        </Grid.RowDefinitions>
        <GroupBox Header="重新扫描歌库" Name="groupBox1" Grid.Row="0">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="51"/>
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>
                <StackPanel Orientation="Horizontal" Grid.Row="0">
                    <Label Content="歌库路径" Margin="12" />
                    <TextBox Name="txtKtvLibPath" Margin="12" Width="200"/>
                    <Button Content="浏览" Height="23" HorizontalAlignment="Left" Margin="12" Name="btnExplorer" VerticalAlignment="Top" Width="50" Click="btnExplorer_Click" IsDefault="True" />
                    <CheckBox Content="包括子目录" Name="cbIncludeSubDirs" Margin="0,12" />
                </StackPanel>
                <StackPanel Grid.Row="1" Orientation="Horizontal">
                    <StackPanel>
                        <ProgressBar Height="20" Width="330" Name="ProgressBar1" ValueChanged="ProgressBar1_ValueChanged" />
                        <Label Content="扫描进度：0%" Height="28" HorizontalAlignment="Left" Name="label1" Width="100"/>
                    </StackPanel>
                    <Button Name="btnRescan" Content="重新扫描" Click="btnRescan_Click" HorizontalAlignment="Right" Margin="12,0,12,0" VerticalAlignment="Top" Height="40" Width="100"/>
                    
                </StackPanel>
            </Grid>
        </GroupBox>
        <GroupBox Header="重新设置歌库数据库位置" Grid.Row="1">
            <StackPanel Orientation="Horizontal">
            <Label Content="数据库地址"/>
            <TextBox Name="txtDbPath" Width="300"/>
            <Button Content="浏览" Name="btnExplorerDb" Click="btnExplorerDb_Click"/>
                <Button Name="BtnConfirmDb" Click="BtnConfirmDb_Click">确定</Button>
            </StackPanel>
        </GroupBox>
        <StackPanel Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center">
            <Button IsCancel="True" Width="100" VerticalAlignment="Center">返回</Button>
        </StackPanel>      
    </Grid>
</Window>
